<%--
  Created by IntelliJ IDEA.
  User: Eternity
  Date: 2020/9/28
  Time: 11:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert.min.js"></script>
</head>
<body>
<%--头部信息--%>
<jsp:include page="hade.jsp"/>

<div class="container">
    <div class="row">
        <c:forEach items="${list}" var="paper">
            <%--<c:if test="${paper.deleteFlag}==1">--%>
            <div class="card" style="width:300px">
                <img class="card-img-top" src="https://static.runoob.com/images/mix/img_avatar.png" alt="Card image" style="width:100%">
                <div class="card-body">
                    <h5 class="card-title">${paper.paperName}</h5>
                    <p class="card-text">
                        <span class="badge badge-success">${paper.paperType eq 0?"普通练习题":""}</span>
                        <span class="badge badge-danger">${paper.paperType eq 1?"考试题":""}</span>
                    </p>
                    <a href="/paper/answerIndex?paperId=${paper.paperId}" class="btn btn-primary">答题</a>
                </div>
            </div>
            <%--</c:if>--%>
        </c:forEach>
    </div>

</div>

</body>
</html>

